package com.dc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

@Data
@TableName("dc_system_message")
public class SysMessage {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    private String messageContent;
    private Date createTime;
    private Date readTime;
    private String isRead;
    private String createBy;
    private String sendVersion;
    private String messageType;
    private String type;

    @TableField(exist = false)
    private String userName;

}
